package cn.cdutetc.library.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 图书导入DTO
 */
@Data
public class BookImportDTO {

    @ExcelProperty(value = "ISBN号*", index = 0)
    private String isbn;

    @ExcelProperty(value = "图书名称*", index = 1)
    private String bookName;

    @ExcelProperty(value = "作者*", index = 2)
    private String author;

    @ExcelProperty(value = "出版社", index = 3)
    private String publisher;

    @ExcelProperty(value = "出版日期(格式:2023-01-01)", index = 4)
    private String publishDateStr;

    @ExcelProperty(value = "分类名称*", index = 5)
    private String categoryName;

    @ExcelProperty(value = "图书价格", index = 6)
    private String priceStr;

    @ExcelProperty(value = "总册数*", index = 7)
    private String totalCopiesStr;

    @ExcelProperty(value = "图书位置", index = 8)
    private String location;

    @ExcelProperty(value = "图书简介", index = 9)
    private String description;


    // 转换后的字段
    private LocalDate publishDate;
    private BigDecimal price;
    private Integer totalCopies;
}